﻿using Prism.Services.Dialogs;
using System;
using System.Windows;

namespace LpbPrj.Client.Views
{
    /// <summary>
    /// Interaction logic for UserLogonWnd.xaml
    /// </summary>
    public partial class DefaultDialogWindow : IDialogWindow
    {
        public DefaultDialogWindow()
        {
            this.Initialized += CustomWindow_Initialized;
            InitializeComponent();
        }

        public IDialogResult Result { get; set; }

        private void CustomWindow_Initialized(object sender, EventArgs e)
        {
            if (this.Owner == null)
            {
                this.Owner = App.Current.MainWindow;
            }
            this.WindowStartupLocation = WindowStartupLocation.CenterOwner;
        }



    }
}
